<script language="javascript" type="text/javascript" src="/js/iColorPicker.js"></script>
<table width="600" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td align="center" valign="top">
                                  <table width="523" border="0" cellpadding="0" cellspacing="0" class="adcode_block2">
                                    <tr>
                                      <td><table width="522" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                          <td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                          <td><table width="522" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td width="29" align="right">&nbsp;</td>
                                              <td width="23" align="left" valign="middle"><img src="/images/arrow3.jpg" width="14" height="15" /></td>
                                              <td width="73" align="left" valign="top" class="adcode_font2">網站:</td>
                                              <td width="353" align="left" valign="middle">
                                                  <label>
                                                      <!--<input name="textfield" type="text" class="textfield6" id="textfield" />-->
                                                      <table cellspacing="0" cellpadding="0" border="0" >
                                                          <tbody>
                                                              <tr>
                                                                  <td align="left" valign="top">
                                                                      <select id="online_website" class="textfield9" name="online_website" onchange="selectWebSiteForAds(this)">
                                                                          <?php
                                                                          foreach ($online_website as $key=>$val) {
                                                                              if ($key == 0) {
                                                                                  echo '<option value="'.$val.'" selected>'.$val.'</option>';
                                                                              } else
                                                                                  echo '<option value="'.$val.'">'.$val.'</option>';
                                                                          }
                                                                          ?>
                                                                      </select>
                                                                  </td>
                                                                  <td align="right">
                                                                      &nbsp;
                                                                  </td>
                                                              </tr>
                                                          </tbody>
                                                      </table>
                                                  </label>
                                              </td>
                                              <td align="left" valign="middle">&nbsp;</td>
                                              </tr>
                                          </table></td>
                                        </tr>
										<tr style="display:none;">
                                          <td><table width="522" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td width="29" align="right">&nbsp;</td>
                                              <td width="23" align="left" valign="middle"><img src="/images/arrow3.jpg" width="14" height="15" /></td>
                                              <td width="73" align="left" valign="top" class="adcode_font2">cm source tag:</td>
                                              <td width="353" align="left" valign="middle"><label>
                                                <input name="website_cm_source_tag" type="text" class="textfield6" id="website_cm_source_tag" value="<?php echo $cm_source_tag; ?>"/>
                                              </label></td>
                                              <td align="left" valign="middle">&nbsp;</td>
                                              </tr>
                                          </table></td>
                                        </tr>
                                        <tr>
                                          <td><table width="522" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td width="29" align="right">&nbsp;</td>
                                              <td width="23" align="left" valign="middle"><img src="/images/arrow3.jpg" width="14" height="15" /></td>
                                              <td width="73" align="left" valign="top" class="adcode_font2">廣告名稱:</td>
                                              <td width="353" align="left" valign="middle"><label>
                                                <input name="ads_name" type="text" class="textfield6" id="ads_name" />
                                              </label></td>
                                              <td align="left" valign="middle">&nbsp;</td>
                                              </tr>
                                          </table></td>
                                        </tr>
                                        <tr>
                                          <td><table width="522" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td width="29" align="right">&nbsp;</td>
                                              <td width="23" align="left" valign="middle"><img src="/images/arrow3.jpg" alt="" width="14" height="15" /></td>
                                              <td width="73" align="left" valign="top" class="adcode_font2">廣告尺寸:</td>
                                              <td width="353" align="left" valign="middle">
                                                  <label>
                                                      <!--<input name="textfield" type="text" class="textfield6" id="textfield" />-->
                                                      <table cellspacing="0" cellpadding="0" border="0" >
                                                          <tbody>
                                                              <tr>
                                                                  <td align="left" valign="top">
                                                                      <select id="ads_size" class="textfield9" name="ads_size">
                                                                          <?php
                                                                          foreach ($ads_size as $key=>$val) {
                                                                              echo '<option value="'.$val['name'].'">'.$val['name'].'</option>';
                                                                          }
                                                                          ?>
                                                                      </select>
                                                                  </td>
                                                                  <td align="right">
                                                                      &nbsp;
                                                                  </td>
                                                              </tr>
                                                          </tbody>
                                                      </table>
                                                  </label>
                                              </td>
                                              <td align="left" valign="middle">&nbsp;</td>
                                              </tr>
                                          </table></td>
                                        </tr>
                                        <tr>
                                          <td><table width="522" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td width="29" align="right">&nbsp;</td>
                                              <td width="23" align="left" valign="middle"><img src="/images/arrow3.jpg" width="14" height="15" /></td>
                                              <td width="73" align="left" valign="top" class="adcode_font2">廣告類型:</td>
                                              <td width="353" align="left" valign="middle">
                                                  <label>
                                                      <!--<input name="textfield" type="text" class="textfield6" id="textfield" />-->
                                                      <table cellspacing="0" cellpadding="0" border="0" >
                                                          <tbody>
                                                              <tr>
                                                                  <td align="left" valign="top">
                                                                      <select id="ad_category" class="textfield9" name="ad_category">
                                                                          <?php
                                                                          foreach ($category as $key=>$val) {
                                                                              if ($key == 0) {
                                                                                  echo '<option value="'.$val.'" selected>'.$category_mapping_name[$val]['name'].'</option>';
                                                                              } else
                                                                                  echo '<option value="'.$val.'">'.$category_mapping_name[$val]['name'].'</option>';
                                                                          }
                                                                          ?>
                                                                      </select>
                                                                  </td>
                                                                  <td align="right">
                                                                      &nbsp;
                                                                  </td>
                                                              </tr>
                                                          </tbody>
                                                      </table>
                                                  </label>
                                              </td>
                                              <td align="left" valign="middle">&nbsp;</td>
                                              </tr>
                                          </table></td>
                                        </tr>
										<!--
                                        <tr>
                                          <td><table width="522" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td width="29" align="right">&nbsp;</td>
                                              <td width="23" align="left" valign="middle"><img src="/images/arrow3.jpg" alt="" width="14" height="15" /></td>
                                              <td width="73" align="left" valign="middle" class="adcode_font2">網址:</td>
                                              <td width="353" align="left" valign="middle"><label>
                                                <input name="textfield" type="text" class="textfield6" id="textfield" />
                                              </label></td>
                                              <td align="left" valign="middle">&nbsp;</td>
                                              </tr>
                                          </table></td>
                                        </tr>
										-->
                                        <tr>
                                          <td><table width="522" border="0" cellspacing="0" cellpadding="0">
                                              <tr>
                                              <td height="5" colspan="5" align="right"></td>
                                              </tr>
                                            
                                            <tr>
                                              <td width="29" align="right">&nbsp;</td>
                                              <td width="23" align="left" valign="middle"><img src="/images/arrow3.jpg" alt="" width="14" height="15" /></td>
                                              <td width="73" align="left" valign="top" class="adcode_font2">標題顏色:</td>
                                              <td width="165" align="left" valign="middle"><label>
                                              <input id="title_color" name="title_color" type="text" value="#006699" class="iColorPicker" style="background-color: rgb(255, 255, 255);"  />
                                              
                                              </label></td>
                                              <td align="left" valign="top"><a href="javascript:void(null)" id="icp_mycolor" onclick="iColorShow('title_color','icp_mycolor')"><img src="/images/choice_btn.jpg" style="border:0;margin:0 0 0 3px" align="absmiddle" /></a></td>
                                              </tr>
                                          </table></td>
                                        </tr>
                                        <tr>
                                          <td><table width="522" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td width="29" align="right">&nbsp;</td>
                                              <td width="23" align="left" valign="middle"><img src="/images/arrow3.jpg" alt="" width="14" height="15" /></td>
                                              <td width="73" align="left" valign="top" class="adcode_font2">描述顏色:</td>
                                              <td width="165" align="left" valign="middle"><label>
                                                <input id="desc_color" name="desc_color" type="text" value="#7F7F7F" class="iColorPicker" style="background-color: rgb(255, 255, 255);"  />
                                              </label></td>
                                              <td align="left" valign="top"><a href="javascript:void(null)" id="icp_mycolor2" onclick="iColorShow('desc_color','icp_mycolor2')"><img src="/images/choice_btn.jpg" style="border:0;margin:0 0 0 3px" align="absmiddle" /></a></td>
                                              </tr>
                                          </table></td>
                                        </tr>
                                        <tr>
                                          <td><table width="522" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td width="29" align="right">&nbsp;</td>
                                              <td width="23" align="left" valign="middle"><img src="/images/arrow3.jpg" alt="" width="14" height="15" /></td>
                                              <td width="73" align="left" valign="top" class="adcode_font2">邊框顏色:</td>
                                              <td width="165" align="left" valign="middle"><label>
                                                <input id="border_color" name="border_color" type="text" value="#CCCCCC" class="iColorPicker" style="background-color: rgb(255, 255, 255);"  />
                                              </label></td>
                                              <td align="left" valign="top"><a href="javascript:void(null)" id="icp_mycolor3" onclick="iColorShow('border_color','icp_mycolor3')"><img src="/images/choice_btn.jpg" style="border:0;margin:0 0 0 3px" align="absmiddle" /></a></td>
                                              </tr>
                                          </table></td>
                                        </tr>
                                        <tr>
                                          <td><table width="522" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td width="29" align="right">&nbsp;</td>
                                              <td width="23" align="left" valign="middle"><img src="/images/arrow3.jpg" alt="" width="14" height="15" /></td>
                                              <td width="73" align="left" valign="top" class="adcode_font2">背景顏色:</td>
                                              <td width="165" align="left" valign="middle"><label>
                                                <input id="background_color" name="background_color" type="text" value="#FFFFFF" class="iColorPicker" style="background-color: rgb(255, 255, 255);"  />
                                              </label></td>
                                              <td align="left" valign="top"><a href="javascript:void(null)" id="icp_mycolor4" onclick="iColorShow('background_color','icp_mycolor4')"><img src="/images/choice_btn.jpg" style="border:0;margin:0 0 0 3px" align="absmiddle" /></a></td>
                                              </tr>
                                          </table></td>
                                        </tr>
										<!--
                                        <tr>
                                          <td><table width="522" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td width="29" align="right">&nbsp;</td>
                                              <td width="23" align="left" valign="middle"><img src="/images/arrow3.jpg" alt="" width="14" height="15" /></td>
                                              <td width="73" align="left" valign="top" class="adcode_font2">網址顏色:</td>
                                              <td width="165" align="left" valign="middle"><label>
                                                <input id="mycolor5" name="mycolor5" type="text" value="#fff" class="iColorPicker" style="background-color: rgb(255, 255, 255);"  />
                                              </label></td>
                                              <td align="left" valign="top"><a href="javascript:void(null)" id="icp_mycolor5" onclick="iColorShow('mycolor5','icp_mycolor5')"><img src="/images/choice_btn.jpg" style="border:0;margin:0 0 0 3px" align="absmiddle" /></a></td>
                                              </tr>
                                          </table></td>
                                        </tr>
										-->
                                        <tr>
                                          <td height="22">&nbsp;</td>
                                        </tr>
                                        <tr>
                                          <td><table width="522" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td width="125">&nbsp;</td>
                                              <td width="77" align="left"><table width="57" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                  <td width="57" height="30" align="center" valign="middle" background="/images/ad_btn1.jpg"><a id="ads_preview" href="#" class="adcode_link">預覽</a></td>
                                                </tr>
                                              </table></td>
											  <td width="77" align="left"><table width="57" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                  <td width="57" height="30" align="center" valign="middle" background="/images/ad_btn1.jpg"><a id="ads_save" href="#" class="adcode_link">儲存</a></td>
                                                </tr>
                                              </table></td>
                                              <td align="left"><table width="168" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                  <td width="168" height="30" align="center" valign="middle" background="/images/ad_btn2.jpg"><a id="ads_save_and_get" href="/ads/save_and_get_code" class="adcode_link">儲存及取得廣告碼</a></td>
                                                </tr>
                                              </table></td>
                                            </tr>
                                          </table></td>
                                        </tr>
                                        <tr>
                                          <td height="25">&nbsp;</td>
                                        </tr>
                                      </table></td>
                                    </tr>
                                    </table>
                                </td>
                              </tr>
                              </table>
